package com.example.laundry.repository;

import com.example.laundry.entity.LaundryOrderEntity;
import com.example.laundry.entity.UserEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface LaundryOrderRepository extends JpaRepository<LaundryOrderEntity, Long> {
    List<LaundryOrderEntity> findByUser(UserEntity user);
}